package com.zlzxm.shoesmarket.view.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.zlzxm.shoesmarket.R;
import com.zlzxm.shoesmarket.view.adapter.entity.EntityStatisticMenu;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * CREATE BY zlzxm ON 4/9/21
 */
public class ADStatisticMenu extends BaseQuickAdapter<EntityStatisticMenu, BaseViewHolder> {
    public ADStatisticMenu( @Nullable List<EntityStatisticMenu> data) {
        super(R.layout.item_statistic_menu, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder holder, EntityStatisticMenu menu) {

        holder.setImageResource(R.id.ivMenu,menu.getIcon());
        holder.setText(R.id.tvTitle,menu.getTitle());

    }
}
